package util;

import java.util.Random;

import jmetal.util.IRandomGenerator;

public class MyRandom implements IRandomGenerator {

	Random r;
	
	public MyRandom(long seed)
	{
		r = new Random(seed);
	}
	
	@Override
	public double nextDouble() {
		return r.nextDouble();
	}

	@Override
	public int nextInt(int interval) {
		return r.nextInt(interval);
	}

}
